package com.shuyuntu.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "Th_DOG")
@Entity
public class Dog {

	// ID
	private int id;
	// 狗名字
	private String name;
	// 狗年龄
	private int age;
	// 狗出生日期
	private String birthday;

	@Id
	@Column(name = "F_ID")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "F_NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Column(name = "F_AGE")
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getBirthday() {
		return birthday;
	}

	@Column(name = "F_BIRTHDAY")
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "Dog [id=" + id + ", name=" + name + ", age=" + age + ", birthday=" + birthday + "]";
	}

}
